/*
 * semaphore.h
 *
 *  Created on: 2011/07/02
 *      Author: AKS
 */

#ifndef SEMAPHORE_H_
#define SEMAPHORE_H_

#include "types.h"

typedef struct t_semaphore_core
{
    BYTE sem;
    BYTE max;
} semaphore_core;


BOOL initSemaphore(semaphore_core *smp, BYTE max);
BOOL semaphore_Passeren(semaphore_core *smp);
void semaphore_Verhoog(semaphore_core *smp);

#endif /* SEMAPHORE_H_ */
